package com.lzx.dormsys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lzx.dormsys.mapper.RoomtypeBeanMapper;
import com.lzx.dormsys.bean.RoomtypeBean;
import com.lzx.dormsys.service.IRoomtypeBeanService;

/**
 * roomtypeService业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-09
 */
@Service
public class RoomtypeBeanServiceImpl implements IRoomtypeBeanService 
{
    @Autowired
    private RoomtypeBeanMapper roomtypeBeanMapper;

    /**
     * 查询roomtype
     * 
     * @param roomtypeId roomtypeID
     * @return roomtype
     */
    @Override
    public RoomtypeBean selectRoomtypeBeanById(Long roomtypeId)
    {
        return roomtypeBeanMapper.selectRoomtypeBeanById(roomtypeId);
    }

    /**
     * 查询roomtype列表
     * 
     * @param roomtypeBean roomtype
     * @return roomtype
     */
    @Override
    public List<RoomtypeBean> selectRoomtypeBeanList(RoomtypeBean roomtypeBean)
    {
        return roomtypeBeanMapper.selectRoomtypeBeanList(roomtypeBean);
    }

    /**
     * 新增roomtype
     * 
     * @param roomtypeBean roomtype
     * @return 结果
     */
    @Override
    public int insertRoomtypeBean(RoomtypeBean roomtypeBean)
    {
        return roomtypeBeanMapper.insertRoomtypeBean(roomtypeBean);
    }

    /**
     * 修改roomtype
     * 
     * @param roomtypeBean roomtype
     * @return 结果
     */
    @Override
    public int updateRoomtypeBean(RoomtypeBean roomtypeBean)
    {
        return roomtypeBeanMapper.updateRoomtypeBean(roomtypeBean);
    }

    /**
     * 批量删除roomtype
     * 
     * @param roomtypeIds 需要删除的roomtypeID
     * @return 结果
     */
    @Override
    public int deleteRoomtypeBeanByIds(Long[] roomtypeIds)
    {
        return roomtypeBeanMapper.deleteRoomtypeBeanByIds(roomtypeIds);
    }

    /**
     * 删除roomtype信息
     * 
     * @param roomtypeId roomtypeID
     * @return 结果
     */
    @Override
    public int deleteRoomtypeBeanById(Long roomtypeId)
    {
        return roomtypeBeanMapper.deleteRoomtypeBeanById(roomtypeId);
    }
}
